package com.laihuichuxing.pool;

import com.laihuichuxing.pool.dto.DriverLbsDto;
import com.laihuichuxing.pool.dto.UserLbsDto;

import java.util.List;
import java.util.Map;

/**
 * Description:
 *
 * @author: Qinxuefeng
 * @since: 1.0
 * Create Date Time: 2018/9/30 10:38
 * Update Date Time:
 */
public interface DriverLbs4MongoPool {
    //取出司机资源
    DriverLbsDto take(UserLbsDto userLbsDto);
    //取出司机资源
    List<Map<String,String>> take(UserLbsDto userLbsDto, int ListSize);
    //取出自己
    String takeMe(String mobile, String cityCode);
    //删除司机
    void del(String mobile, String cityCode);
    //放入司机资源
    void offer(String lon, String lat, String phone, String cityCode);
}
